<?php


/**
 * This class defines the structure of the 'record_book' table.
 *
 *
 *
 * This map class is used by Propel to do runtime db structure discovery.
 * For example, the createSelectSql() method checks the type of a given column used in an
 * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
 * (i.e. if it's a text column type).
 *
 * @package    orm.map
 */
class RecordBookTableMap extends TableMap {

	/**
	 * The (dot-path) name of this class
	 */
	const CLASS_NAME = 'orm.map.RecordBookTableMap';

	/**
	 * Initialize the table attributes, columns and validators
	 * Relations are not initialized by this method since they are lazy loaded
	 *
	 * @return     void
	 * @throws     PropelException
	 */
	public function initialize()
	{
	  // attributes
		$this->setName('record_book');
		$this->setPhpName('RecordBook');
		$this->setClassname('RecordBook');
		$this->setPackage('orm');
		$this->setUseIdGenerator(true);
		// columns
		$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, 11, null);
		$this->addForeignKey('PLAYER_ID', 'PlayerId', 'INTEGER', 'player', 'ID', false, 11, null);
		$this->addColumn('TYPE', 'Type', 'VARCHAR', false, 50, null);
		$this->addColumn('MATCHES', 'Matches', 'INTEGER', false, 11, null);
		$this->addColumn('INNIGNS', 'Innigns', 'INTEGER', false, 11, null);
		$this->addColumn('NOTOUT', 'Notout', 'INTEGER', false, 11, null);
		$this->addColumn('RUNS', 'Runs', 'INTEGER', false, 11, null);
		$this->addColumn('HIGHEST', 'Highest', 'INTEGER', false, 4, null);
		$this->addColumn('AVERAGE', 'Average', 'FLOAT', false, 8, null);
		$this->addColumn('STRIKE_RATE', 'StrikeRate', 'FLOAT', false, 8, null);
		$this->addColumn('HUNDRED', 'Hundred', 'INTEGER', false, 4, null);
		$this->addColumn('FIFTY', 'Fifty', 'INTEGER', false, 4, null);
		$this->addColumn('SIX', 'Six', 'INTEGER', false, 4, null);
		$this->addColumn('FOUR', 'Four', 'INTEGER', false, 4, null);
		$this->addColumn('CATCHES', 'Catches', 'INTEGER', false, 4, null);
		$this->addColumn('WICKETS', 'Wickets', 'INTEGER', false, 4, null);
		$this->addColumn('BEST_BOWLING', 'BestBowling', 'VARCHAR', false, 10, null);
		$this->addColumn('BEST_BOWLING_INNINGS', 'BestBowlingInnings', 'VARCHAR', false, 10, null);
		$this->addColumn('BOWLING_AVERAGE', 'BowlingAverage', 'FLOAT', false, 10, null);
		$this->addColumn('BOWLING_STRIKE_RATE', 'BowlingStrikeRate', 'FLOAT', false, 10, null);
		// validators
	} // initialize()

	/**
	 * Build the RelationMap objects for this table relationships
	 */
	public function buildRelations()
	{
    $this->addRelation('Player', 'Player', RelationMap::MANY_TO_ONE, array('player_id' => 'id', ), null, null);
	} // buildRelations()

} // RecordBookTableMap
